package com.xcj.juhe.mapper.test2;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import javax.annotation.PostConstruct;
import java.util.ArrayList;

/**
 * @author xcj
 * @date 2021/4/25 17:12
 */
@Repository("UserMapper2")
public interface UserMapper {

    //通过小号id查询用户名称
    public String selectUserNameBySubUserId(@Param(value = "userId") String userId);

    //通过联运渠道查询可登录的小号集合
    public ArrayList<String> getCanLoginSubUserIds(@Param(value = "dcCId") String dcChannelId, @Param(value = "dcPId") String dcProductId,
                                                   @Param(value = "startTime") String startTime, @Param(value = "endTime") String endTime);

    public int updateUserRegTimeByUserName(@Param(value = "userName") String userName, @Param(value = "time") String timeStr);
}
